<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Thymeleaf Example</title>
</head>
<body>
<h1 th:text="${message}"></h1>
<form th:action="@{/get}" method="post">
    <input type="text" name="input" th:value="${input}"/>
    <button type="submit">Submit</button>
</form>
<script th:inline="javascript">
    /*<![CDATA[*/
    var message = [[${message}]];
    /*]]>*/
</script>
</body>
</html>